import { storeToRefs } from "pinia";
import useBaseStore from "@/store/main";

const usepageSelectHook = (pageName: string, seleteText: string, mainMenuName: string = 'baseInfo') => {
  const baseStore = useBaseStore();
  baseStore.feachPageSelectListAction(pageName, mainMenuName, seleteText);
  const { pageSelectList } = storeToRefs(baseStore);

  return pageSelectList
}

export default usepageSelectHook
